/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package report;

import entity.Members;
import java.lang.reflect.Member;
import java.util.Date;
import processor.DateConvert;

/**
 *
 * @author maynoigi
 */
public class StatusReport {
    Date createDate;
    Date closeDate;
    String priority;
    String title;

    String timeSolved;

    public StatusReport(Date createDate, Date closeDate, String priority, String title, Members creator, Members solver) {
        this.createDate = createDate;
        this.closeDate = closeDate;
        this.priority = priority;
        this.title = title;
        this.creator = creator;
        this.solver = solver;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getCloseDate() {
        return closeDate;
    }

    public void setCloseDate(Date closeDate) {
        this.closeDate = closeDate;
    }

    public String getTimeSolved() {
       timeSolved=DateConvert.getTimeSolved(createDate, closeDate);
        return timeSolved;
    }

    public void setTimeSolved(String timeSolved) {
        this.timeSolved = timeSolved;
    }
    Members creator;
    Members solver;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Members getCreator() {
        return creator;
    }

    public void setCreator(Members creator) {
        this.creator = creator;
    }

    public Members getSolver() {
        return solver;
    }

    public void setSolver(Members solver) {
        this.solver = solver;
    }


    public String getPriority() {
        return priority;
    }

    public void setPriority(String priority) {
        this.priority = priority;
    }


}
